import {fromJS} from 'immutable'
import {RECEIVE_DATA_BY_TIME} from '../../../store/actionTypes'
//使用immutable来防止state数据被改变，
const defaultState = fromJS({
    contentByTimeList:[],
});
export default (state = defaultState,action) =>{
    if(action.type === RECEIVE_DATA_BY_TIME){
        return state.set('contentByTimeList',action.data);
    }
    return state;
}